import time


def timeit(func):
    """计时器装饰器
    """

    def wrapper(*args):
        start = time.time()
        func(*args)
        end = time.time()
        print('used:', end - start, "s")

    return wrapper
